<% if  !@editor_place.nil?  && (@editor_place == 'teaching_notes') && can_edit_ecase?(@ecase) %>
    <%=  render :partial => '/editor/casetexteditor' %>
<% else %>
 <% if can_edit_ecase?(@ecase) %>
    <table  onmouseover="show_btn('teaching_notes')" onmouseout="hide_btn('teaching_notes')"  class="for_rbtn" ><tr><td class="for_rbtn" >
     <p id="btn_teaching_notes" ><%= link_to image_tag('left_edit.gif'), {:controller => "ecases", :action => "teaching_notes" , :id => @ecase , :editor_action_id => "teaching_notes" }  %></p>
     </td><td>
     <div><%= @ecase.teaching_notes_filled %> </div>
     </td></tr>
     </table>
   <% else %>
     <div class="content_both_nedited"><%= @ecase.teaching_notes_with_check %> </div>
   <% end %>
<% end %>
    
